<%@ page import="org.model.ProjectStatus" %>



<div class="fieldcontain ${hasErrors(bean: projectStatusInstance, field: 'name', 'error')} required">
	<label for="name">
		<g:message code="projectStatus.name.label" default="Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="name" required="" value="${projectStatusInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: projectStatusInstance, field: 'projects', 'error')} ">
	<label for="projects">
		<g:message code="projectStatus.projects.label" default="Projects" />
		
	</label>
	
<ul class="one-to-many">
<g:each in="${projectStatusInstance?.projects?}" var="p">
    <li><g:link controller="sugarCase" action="show" id="${p.id}">${p?.encodeAsHTML()}</g:link></li>
</g:each>
<li class="add">
<g:link controller="sugarCase" action="create" params="['projectStatus.id': projectStatusInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'sugarCase.label', default: 'SugarCase')])}</g:link>
</li>
</ul>

</div>

